﻿using SqlSugar;
using System.ComponentModel;
using System.Runtime.Serialization;

namespace ServiceCore.Entity.Core
{
    /// <summary>
    /// 表基础类
    /// </summary>
    [Serializable]
    [DataContract]
    public class BaseEntity
    {
        /// <summary>
        /// id 主键自增长
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)] // 指定主键和自增
        [Description("id 主键自增长")]
        [DataMember]
        public long Id { get; set; }

        /// <summary>
        /// 创建人Id
        /// </summary>
        [Description("创建人Id")]
        [DataMember]
        public long CreateUserId { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        [Description("创建时间")]
        [DataMember]
        public DateTime CreateTime { get; set; } 
        
    }
}
